package sury.biz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import sury.dal.dto.AdminDTO;
import sury.dal.dto.AdminLoginDTO;
import sury.dal.entity.AdminEntity;

import java.util.List;

public interface AdminService extends IService<AdminEntity> {
    void saveAdmin(AdminDTO adminDTO);
    Object pageAdmin(Page<AdminEntity> page, String name);
    void updateById(Long id, AdminDTO adminDTO);
    void assignRolesToUser(Long adminId, List<Long> roleIds);

    Object getRoleList(Long id);

    AdminEntity adminLogin(AdminLoginDTO adminLoginDTO);
}
